package com.mcxx.modules.miniSalvation.order.dao.write;


import com.mcxx.modules.miniSalvation.order.entity.OrderCertEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderCertWriteDao {
	
	int insert(OrderCertEntity orderCert);

	
	void insertCopy(OrderCertEntity orderCert);

	
	int insertIgnoreNull(OrderCertEntity orderCert);

	
	int update(OrderCertEntity orderCert);

	
	int updateById(@Param("idList") List<String> idList, String orderId, String associationTable, String associationTableId);

	
	int updateIgnoreNull(OrderCertEntity orderCert);

	
	int deleteById(String id);

	
	int deleteByOrderAndAssociationTable(String orderId, String associationTable);

	
    int batchDelete(String[] ids);
	
	int copyCertInfo(@Param("orderId") String orderId, @Param("newOrderId")String newOrderId);
	
	int copyInHouseCertInfo(@Param("oldId")String oldId,@Param("newId")String newId, @Param("newOrderId")String newOrderId);
	
	int deleteByOrderId(String orderId);

	
	int copyMarriedCertInfo(@Param("orderId")String orderId,@Param("supportId")String supportId, @Param("memberId")String memberId);
}
